﻿@{
    var obj = Model as Object;
    var path = Context.Request.Path + "";
}
<div class="navbar-collapse text-center">
    <ul class="nav nav-pills" style="margin-bottom: 10px; display: inline-block;float: none;">
        <li role="presentation" class="@(path.StartsWithIgnoreCase("/Admin/Core")?"active":"")"><a href="/Admin/Core">基本设置</a></li>
        <li role="presentation" class="@(path.StartsWithIgnoreCase("/Admin/Sys")?"active":"")"><a href="/Admin/Sys">系统设置</a></li>
        <li role="presentation" class="@(path.StartsWithIgnoreCase("/Admin/XCode")?"active":"")"><a href="/Admin/XCode">数据中间件</a></li>
        <li role="presentation" class="@(path.StartsWithIgnoreCase("/Admin/Cube")?"active":"")"><a href="/Admin/Cube">魔方设置</a></li>
        <li role="presentation" class="@(path.StartsWithIgnoreCase("/Admin/OAuthConfig")?"active":"")"><a href="/Admin/OAuthConfig">OAuth设置</a></li>
        <li role="presentation" class="@(path.StartsWithIgnoreCase("/Admin/AccessRule")?"active":"")"><a href="/Admin/AccessRule">访问规则</a></li>
    </ul>
</div>